<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the Marker constructor from the Class Marker class from the amap_flutter_map library, for the Dart programming language.">
  <title>Marker constructor - Marker class - amap_flutter_map library - Dart API</title>

  
  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="../../static-assets/github.css">
  <link rel="stylesheet" href="../../static-assets/styles.css">
  <link rel="icon" href="../../static-assets/favicon.png">

</head>

<body data-base-href="../../"
      data-using-base-href="false">

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">amap_flutter_map</a></li>
    <li><a href="../../amap_flutter_map/amap_flutter_map-library.html">amap_flutter_map</a></li>
    <li><a href="../../amap_flutter_map/Marker-class.html">Marker</a></li>
    <li class="self-crumb">Marker constructor</li>
  </ol>
  <div class="self-name">Marker</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="../../index.html">amap_flutter_map</a></li>
      <li><a href="../../amap_flutter_map/amap_flutter_map-library.html">amap_flutter_map</a></li>
      <li><a href="../../amap_flutter_map/Marker-class.html">Marker</a></li>
      <li class="self-crumb">Marker constructor</li>
    </ol>
    
    <h5>Marker class</h5>
    <ol>
    
      <li class="section-title"><a href="../../amap_flutter_map/Marker-class.html#constructors">Constructors</a></li>
      <li><a href="../../amap_flutter_map/Marker/Marker.html">Marker</a></li>
    
      <li class="section-title">
        <a href="../../amap_flutter_map/Marker-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="../../amap_flutter_map/Marker/alpha.html">alpha</a></li>
      <li><a href="../../amap_flutter_map/Marker/anchor.html">anchor</a></li>
      <li><a href="../../amap_flutter_map/Marker/clickable.html">clickable</a></li>
      <li><a href="../../amap_flutter_map/Marker/draggable.html">draggable</a></li>
      <li><a href="../../amap_flutter_map/Marker/hashCode.html">hashCode</a></li>
      <li><a href="../../amap_flutter_map/Marker/icon.html">icon</a></li>
      <li class="inherited"><a href="../../amap_flutter_map/BaseOverlay/id.html">id</a></li>
      <li><a href="../../amap_flutter_map/Marker/infoWindow.html">infoWindow</a></li>
      <li><a href="../../amap_flutter_map/Marker/infoWindowEnable.html">infoWindowEnable</a></li>
      <li><a href="../../amap_flutter_map/Marker/onDragEnd.html">onDragEnd</a></li>
      <li><a href="../../amap_flutter_map/Marker/onTap.html">onTap</a></li>
      <li><a href="../../amap_flutter_map/Marker/position.html">position</a></li>
      <li><a href="../../amap_flutter_map/Marker/rotation.html">rotation</a></li>
      <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
      <li><a href="../../amap_flutter_map/Marker/visible.html">visible</a></li>
      <li><a href="../../amap_flutter_map/Marker/zIndex.html">zIndex</a></li>
    
      <li class="section-title"><a href="../../amap_flutter_map/Marker-class.html#instance-methods">Methods</a></li>
      <li><a href="../../amap_flutter_map/Marker/clone.html">clone</a></li>
      <li><a href="../../amap_flutter_map/Marker/copyWith.html">copyWith</a></li>
      <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="../../amap_flutter_map/BaseOverlay/setIdForCopy.html">setIdForCopy</a></li>
      <li><a href="../../amap_flutter_map/Marker/toMap.html">toMap</a></li>
      <li><a href="../../amap_flutter_map/Marker/toString.html">toString</a></li>
    
      <li class="section-title"><a href="../../amap_flutter_map/Marker-class.html#operators">Operators</a></li>
      <li><a href="../../amap_flutter_map/Marker/operator_equals.html">operator ==</a></li>
    
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-constructor">Marker</span> constructor </h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">Marker</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="-param-position">{<span>@<a href="https://api.flutter.dev/flutter/widgets/required-constant.html">required</a></span> <span class="type-annotation">LatLng</span> <span class="parameter-name">position</span>, </span></li>
<li><span class="parameter" id="-param-alpha"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/double-class.html">double</a></span> <span class="parameter-name">alpha</span>: <span class="default-value">1.0</span>, </span></li>
<li><span class="parameter" id="-param-anchor"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">anchor</span>: <span class="default-value">const Offset(0.5, 0.5)</span>, </span></li>
<li><span class="parameter" id="-param-clickable"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">clickable</span>: <span class="default-value">true</span>, </span></li>
<li><span class="parameter" id="-param-draggable"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">draggable</span>: <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-icon"><span class="type-annotation"><a href="../../amap_flutter_map/BitmapDescriptor-class.html">BitmapDescriptor</a></span> <span class="parameter-name">icon</span>: <span class="default-value">BitmapDescriptor.defaultMarker</span>, </span></li>
<li><span class="parameter" id="-param-infoWindowEnable"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">infoWindowEnable</span>: <span class="default-value">true</span>, </span></li>
<li><span class="parameter" id="-param-infoWindow"><span class="type-annotation"><a href="../../amap_flutter_map/InfoWindow-class.html">InfoWindow</a></span> <span class="parameter-name">infoWindow</span>: <span class="default-value">InfoWindow.noText</span>, </span></li>
<li><span class="parameter" id="-param-rotation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/double-class.html">double</a></span> <span class="parameter-name">rotation</span>: <span class="default-value">0.0</span>, </span></li>
<li><span class="parameter" id="-param-visible"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">visible</span>: <span class="default-value">true</span>, </span></li>
<li><span class="parameter" id="-param-zIndex"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/double-class.html">double</a></span> <span class="parameter-name">zIndex</span>: <span class="default-value">0.0</span>, </span></li>
<li><span class="parameter" id="-param-onTap"><span class="type-annotation">ArgumentCallback<span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>&gt;</span></span> <span class="parameter-name">onTap</span>, </span></li>
<li><span class="parameter" id="-param-onDragEnd"><span class="type-annotation"><a href="../../amap_flutter_map/MarkerDragEndCallback.html">MarkerDragEndCallback</a></span> <span class="parameter-name">onDragEnd</span>}</span></li>
</ol>)
    </section>

    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">Marker({
  @required this.position,
  this.alpha = 1.0,
  this.anchor = const Offset(0.5, 0.5),
  this.clickable = true,
  this.draggable = false,
  this.icon = BitmapDescriptor.defaultMarker,
  this.infoWindowEnable = true,
  this.infoWindow = InfoWindow.noText,
  this.rotation = 0.0,
  this.visible = true,
  this.zIndex = 0.0,
  this.onTap,
  this.onDragEnd,
})  : assert(position != null),
      assert(alpha == null || (0.0 &lt;= alpha &amp;&amp; alpha &lt;= 1.0)),
      super();</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    amap_flutter_map
      1.1.0
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../../static-assets/typeahead.bundle.min.js"></script>
<script src="../../static-assets/highlight.pack.js"></script>
<script src="../../static-assets/URI.js"></script>
<script src="../../static-assets/script.js"></script>


</body>

</html>
